.toplist-panel {
    padding: 20px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.toplist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.toplist-header h2 {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

.toplist-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.toplist-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toplist-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toplist-tab.active {
    background: rgba(59, 130, 246, 0.5);
}

.toplist-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.toplist-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toplist-entry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toplist-entry.top-1 { color: #FFD700; }  /* Gold */
.toplist-entry.top-2 { color: #C0C0C0; }  /* Silver */
.toplist-entry.top-3 { color: #CD7F32; }  /* Bronze */

.entry-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-rank {
    font-weight: bold;
    min-width: 30px;
}

.entry-name {
    font-size: 16px;
}

.entry-value {
    font-family: monospace;
    font-size: 14px;
    opacity: 0.9;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
}

.refresh-button:hover {
    background: rgba(59, 130, 246, 0.3);
}

.refresh-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.refresh-icon {
    transition: transform 0.5s ease;
}

.refresh-button.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.6);
}

.error-message {
    color: #ef4444;
    padding: 16px;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    margin: 16px 0;
} 